import http from "@/api";

const namespace = "/admin/micro";
export const productList = (params?: object) => {
  return http.get(`${namespace}/product/index`, params, { noLoading: false });
};
export const productDetail = (params?: object) => {
  return http.get(`${namespace}/product/detail`, params, { noLoading: false });
};
export const productDel = (params?: object) => {
  return http.get(`${namespace}/product/delete`, params, { noLoading: false });
};
export const productStatus = (params?: object) => {
  return http.post(`${namespace}/product/status`, params, { noLoading: false });
};
export const productCreate = (params?: object) => {
  return http.post(`${namespace}/product/create`, params, { noLoading: false });
};
export const productUpdate = (params?: object) => {
  return http.post(`${namespace}/product/modify`, params, { noLoading: false });
};

export const orderList = (params?: object) => {
  return http.get(`${namespace}/order/index`, params, { noLoading: false });
};
